﻿<template>
    <div class=" brand-box">
        <el-form>
            <table border="1" style="text-align: center  ; border-collapse: collapse">
                <tr>
                    <td style="width: 400px;height: 50px"> 活动名称：
                        <el-input v-model="ReturnedInfo.marketingName"
                                  placeholder="市场活动名称"
                                  style="width: 300px"
                                  maxlength="20" show-word-limit>
                        </el-input>
                    </td>
                    <td style="width: 400px;height: 50px">活动日期：
                        <el-date-picker v-model="ReturnedInfo.marketingDate" type="datetime"
                                        placeholder="选择日期时间"></el-date-picker>
                    </td>
                    <td style="width: 400px;height: 50px">审批状态：
                        <el-select v-model="ReturnedInfo.approvalStatus" placeholder="请选择">
                            <el-option label="未审批" :value="1"></el-option>
                            <el-option label="已审批" :value="2"></el-option>
                            <el-option label="审批不通过" :value="3"></el-option>
                        </el-select>
                    </td>
                    <td style="width: 400px;height: 50px">领取方式：
                        <el-select v-model="ReturnedInfo.rewardWay" placeholder="请选择">
                            <el-option label="现场领取" :value="1"></el-option>
                            <el-option label="邮寄" :value="2"></el-option>
                        </el-select>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">
                        <el-button round type="primary" @click="findPage">查询</el-button>
                        <el-button round type="info" @click="reset">重置</el-button>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">
                        <el-button round type="primary" icon="el-icon-circle-plus-outline" @click="addReturned">
                            新增赠品退库申请单
                        </el-button>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <el-table :data="pageDate" style="width: 100%">
                            <el-table-column fixed prop="id" label="序号" width="200"></el-table-column>
                            <el-table-column prop="marketingName" label="活动名称" width="200"></el-table-column>
                            <el-table-column prop="rewardWay" label="领取方式" width="200"></el-table-column>
                            <el-table-column prop="applicant" label="申请人" width="200"></el-table-column>
                            <el-table-column prop="marketingDate" label="活动日期" width="200"></el-table-column>
                            <el-table-column prop="approvalStatus" label="审批状态" width="200"></el-table-column>
                            <el-table-column prop="handle" label="操作" width="400">
                                <template slot-scope="scope">
                                    <el-button round type="primary" icon="el-icon-document-copy" size="mini">查看
                                    </el-button>
                                    <el-button round type="warning" icon="el-icon-edit" size="mini">修改</el-button>
                                    <el-button round type="danger" icon="el-icon-delete" size="mini">删除</el-button>
                                    <el-button round type="danger" icon="el-icon-finished" size="mini">审核跟踪</el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <el-pagination background
                                       :current-page="ReturnedInfo.current"
                                       :page-size="ReturnedInfo.size"
                                       @current-change="pagefind"
                                       layout="prev, pager, next"
                                       :total="totalPage">
                        </el-pagination>
                    </td>
                </tr>
            </table>
        </el-form>
    </div>
</template>

<script>
    import brand from './Returned.js'

    export default brand;
</script>

<style scoped lang="sass">
    @import "Returned.scss"
</style>